package com.qf.base.yml.controller;


import com.qf.base.yml.config.OssProperties;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 自定义starter
 *
 * @author zhangwei
 */
@RestController
@Setter
public class YmlController {
    @Value("${version}")
    private int version;
    @Resource
    private OssProperties properties;

    @GetMapping("/yml")
    public String test() {
        return properties.getBucketName();
    }

}
